package com.oocl.pojo;

import java.io.Serializable;
import java.util.Date;

public class Book implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String name;
	private Date publishDate;
	private double price;
	private boolean isNew;
	private String publisher;

	public Book() {
		super();
	}

	public Book(Integer id, String name, Date publishDate, double price,
			boolean isNew, String publisher) {
		super();
		this.id = id;
		this.name = name;
		this.publishDate = publishDate;
		this.price = price;
		this.isNew = isNew;
		this.publisher = publisher;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public boolean isNew() {
		return isNew;
	}

	public void setNew(boolean isNew) {
		this.isNew = isNew;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	@Override
	public String toString() {
		return "Book [id=" + id + ", name=" + name + ", publishDate="
				+ publishDate + ", price=" + price + ", isNew=" + isNew
				+ ", publisher=" + publisher + "]";
	}

	
}
